<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="my" uri="mytag" %> 
<html> 
<head> 
<title>人力资源管理系统</title> 
	<link rel="stylesheet" type="text/css" href="../easyui/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="../easyui/themes/icon.css">
	<script type="text/javascript" src="../easyui/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="../easyui/jquery.easyui.min.js"></script>
	
	<link rel="stylesheet" type="text/css" href="../css/common.css">
	<link rel="stylesheet" type="text/css" href="../css/table.css">

<style type="text/css">
</style>
<script>
function openWin(url){
	window.target="contentFrame";
	window.location = url;
}
function check(url){
	if(confirm("确认删除该条薪资？")){
		openWin(url);
	}
}
</script>
</head> 
<body>
<table width="80%" border="0" cellspacing="0"  align="center" cellpadding="0" class="ListTable">
	<thead>
	<tr>
		<td align="center"  class="TableRow" nowrap>员工编号</td>
		<td align="center"  class="TableRow" nowrap>员工姓名</td>
		<td align="center"  class="TableRow" nowrap>基本工资</td>
		<td align="center"  class="TableRow" nowrap>加班次数</td>
		<td align="center"  class="TableRow" nowrap>全勤奖</td>
		<td align="center"  class="TableRow" nowrap>旷工费</td>
		<td align="center"  class="TableRow" nowrap>保险费</td>
		<td align="center"  class="TableRow" nowrap>绩效奖金</td>
		<td align="center"  class="TableRow" nowrap>实发工资</td>
		<td align="center"  class="TableRow" nowrap>发放日期</td>
		<c:if test="${userQuery!=true }"> 
		 <td align="center"  class="TableRow" nowrap>操作</td>
		 </c:if>
	</tr>
	</thead>
	<tbody>
	<c:forEach items="${wages}" var="wage">
	<tr class="trShallow">
		<td align="center" class="RecordRow" nowrap>${wage.user_id}</td>
		<td align="center" class="RecordRow" nowrap>
				<c:set value = "${wage.user_id }"  var = "userId" />    
				${my:getUserName(userId)}
		</td>
		<td align="center" class="RecordRow" nowrap>${wage.wage_base}</td>
		<td align="center" class="RecordRow" nowrap>${wage.wage_overtime}</td>
		<td align="center" class="RecordRow" nowrap>${wage.wage_check}</td>
		<td align="center" class="RecordRow" nowrap>${wage.wage_absent}</td>
		<td align="center" class="RecordRow" nowrap>${wage.wage_safety}</td>
		<td align="center" class="RecordRow" nowrap>${wage.wage_jxjj}</td>
		<td align="center" class="RecordRow" nowrap>${wage.wage_final}</td>
		<td align="center" class="RecordRow" nowrap> <fmt:formatDate pattern="yyyy-MM-dd" value="${wage.wage_date }" type="both"/> </td>
		<c:if test="${userQuery!=true }">
		<td align="center" class="RecordRow" nowrap> <a href="#" onclick="check('deleteWage.html?user_id=${wage.user_id}&wage_date=${wage.wage_date }')">&nbsp;删除&nbsp;</a> </td>
		</c:if>
	</tr>
	</c:forEach>
	<tbody>	
</table>
<table  width="80%" align="center" class="RecordRowP">
		<tr>
		    <td valign="bottom" class="tdFontcolor">
		            第1 页 共${fn:length(wages)}条 共 1 页
			</td>
	              <td  align="right" nowrap class="tdFontcolor">
		          <p align="right">
		          <input type="hidden" name="listpagination" value="baseNetSignInForm">
		          <input type="hidden" name="current" value="1">
		          <input type="hidden" name="paginationDbAction" value="">首页&nbsp上页&nbsp下页&nbsp末页&nbsp第
		          <input type=text size='2' name='pageSelect' value='' onkeypress='checkNumber(this,event)'/>页&nbsp
		          <a href="#" onclick="">
		          <img src="../images/go.gif" border=0 ></a>
			</td>
		</tr>
    
  </table> 
  <c:if test="${userQuery!=true }">
  <table  width="80%" align="center">
		<tr>
		    <td align="center">	
		        <input type="button" class="mybutton" value='发放薪资' onclick="openWin('prepareEditWage.html')"/> 
			</td>
		</tr>
  </table>
  </c:if>
</body>
</html>